//
//  AddModel.m
//  18-通讯录sqlite
//
//  Created by dllo on 16/8/8.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "AddModel.h"

@implementation AddModel
-(instancetype)initWithDic:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }return self;
}
+(instancetype)addModelWithDic:(NSDictionary *)dic{
    return [[AddModel alloc]initWithDic:dic];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    NSLog(@"%@ : %@", key, value);
}
+ (instancetype)studentWithName:(NSString *)name{
    AddModel *stu = [[AddModel alloc] init];
    stu.name = name;
    return stu;
}
@end
